package com.zeroone.star.seata.controller;

import com.zeroone.star.seata.sevvice.ITransService;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 测试Seata控制器
 * </p>
 * @author 阿伟
 * @since 2025-05-11
 */
@RestController
@RequestMapping("/seata")
public class SeataController {

    @Resource
    ITransService service;

    @PutMapping("/modify")
    public Integer modify() {
        return service.modifyData();
    }
}

